package com.wangwenshuo.rikao.dao;

import com.wangwenshuo.rikao.entity.Student;
import org.springframework.data.repository.PagingAndSortingRepository;

import java.util.List;

public interface StudentMapper extends PagingAndSortingRepository<Student,Long> {
    /**
     * 模糊查询
     * @param name
     * @return
     */
    public List<Student> findByNameLike(String name);

    /**
     * 根据年龄条件查询
     * @param age
     * @return
     */
    public List<Student> findByAgeGreaterThan(Integer age);

}
